package com.yunsom.testdemo.collection;

import java.util.HashSet;
import java.util.Set;

/**
 * @author Xbao
 * @version 1.0
 * @description
 * @date 2021/3/6 15:17
 */
public class Settest {

  public static void main(String[] args) {
    Set<Long> set = new HashSet<>();

    System.out.println(set.add(16842811L));
    System.out.println(set.add(16842811L));
    System.out.println(set.add(16844811L));
    System.out.println(set.add(16848611L));
    System.out.println(set.add(1684811L));

//    for (String s : set) {
//      if (s.contains("2")){
//        set.remove(s);
//      }
//      System.out.println(s);
//    }
    System.out.println(set.toString());
  }
}
